#include<cstdio>

int main()
{
	double x;
	scanf("%lf",&x);
	int k=(int)x;
	printf("%lf",x-k);
	return 0;
}
